<template>
  <div>
    <button class="brn" @click="overAll">完成本次抽奖活动</button>
  </div>
</template>
<script>
import { resetServiceCardStatusByActivityId } from '../../api/luckInterface'

export default {
  data () {
    return {}
  },
  mounted () {
    document.title = '抽奖'
    this.activityId = this.$route.query.activityId
  },
  methods: {
    overAll () {
      resetServiceCardStatusByActivityId({ activityId: this.activityId }).then(res => {
        alert("执行抽奖活动")
      })
    }
  }
}
</script>
<style>
.brn {
  width: 400px;
  height: 200px;
  display: block;
  margin: 100px auto;
  background: red;
  color: #fff;
  font-size: 20px;
  border: none;
  outline: none;
  border-radius: 10px;
}
</style>